﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Core.Entity;
using Domain.Events;

namespace Domain.Entities
{
    public class OrderEntity : BaseEntity
    {
        public string OrderNo { get; set; }

        public void Created()
        {
            Console.WriteLine("订单创建完成，订单号[{0}]", OrderNo);

            base.Publish(new OrderCreatedEvent(this));
        }
    }
}
